package com.wangyk.mybatis.demo.extend_demo;

public class Test {
    public static void main(String[] args) {
        Animal animal=new FlyBird();
        System.out.println(animal);
        animal.setAnimalStr("animalStr");
        System.out.println(animal);
        ((FlyBird) animal).setBirdStr("birdStr");
        System.out.println(animal);
        ((FlyBird) animal).setFlyBirdStr("flyBirdStr");
        System.out.println(animal);
    }
}
